package com.tql.mall.model.merchant;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tql.mall.model.base.BaseUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "商家信息")
@TableName("merchant")
public class Merchant extends BaseUser {

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "商家头像")
    @TableField("avatar")
    private String avatar;


    @ApiModelProperty(value = "商家实名认证的姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商家介绍")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "手机号")
    @TableField("phone_num")
    private String phoneNum;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "商家状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "商家认证状态")
    @TableField("auth_status")
    private Integer authStatus;

    @ApiModelProperty(value = "认证的证件号码")
    @TableField("certificates_no")
    private String certificatesNo;

    @ApiModelProperty(value = "认证的证件类型")
    @TableField("certificates_type")
    private String certificatesType;

    @ApiModelProperty(value = "认证的证件图片")
    @TableField("certificates_img")
    private String certificatesImg;


    @ApiModelProperty(value = "")
    @TableField(exist = false)
    private String roles = "[admin]";

}
